package com.jiyun.feign;

import com.jiyun.vo.QuizDto;
import com.jiyun.vo.ResultResopnse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/* *
 * @Author nxj
 * @Date 2023 08 2023/8/24 17 20
 * */
@FeignClient(name = "day08Category",path = "quiz")
public interface FeignQuiz {
    @GetMapping("findQuizTime")
    public ResultResopnse findQuizTime();
    @GetMapping("findQuizPaperNum")
    public ResultResopnse findQuizPaperNum();
    @GetMapping("findQuizConsumer")
    public ResultResopnse findQuizConsumer();
    @PostMapping("findQuiz")
    public ResultResopnse findQuiz(@RequestBody QuizDto quizDto);
    @GetMapping("findQuizPaperTi")
    public ResultResopnse findQuizPaperTi(@RequestParam("id")Integer id);
    @GetMapping("AddPaperConsumer")
    public ResultResopnse AddPaperConsumer(@RequestParam("id")Integer id);
    @GetMapping("DeletePaperConsumer")
    public ResultResopnse DeletePaperConsumer(@RequestParam("id")Integer id);
    @GetMapping("addDaan")
    public ResultResopnse addDaan(@RequestParam("id")Integer id,@RequestParam("paperId")Integer paperId,@RequestParam("daan")String daan);
    @GetMapping("addKao")
    public ResultResopnse addKao(@RequestParam("id")Integer id,@RequestParam("paperId")Integer paperId,@RequestParam("kao")String kao);
}
